import request from '@/utils/request'

// 查询入库任务列表
export function listCcRukuInfo(query) {
  return request({
    url: '/business/ccRukuInfo/list',
    method: 'get',
    params: query
  })
}

// 查询入库任务列表
export function listCcRukuInfoGroup(query) {
  return request({
    url: '/business/ccRukuInfo/listGroup',
    method: 'get',
    params: query
  })
}



// 查询入库任务详细
export function getCcRukuInfo(id) {
  return request({
    url: '/business/ccRukuInfo/' + id,
    method: 'get'
  })
}

// 新增入库任务
export function addCcRukuInfo(data) {
  return request({
    url: '/business/ccRukuInfo',
    method: 'post',
    data: data
  })
}

// 修改入库任务
export function updateCcRukuInfo(data) {
  return request({
    url: '/business/ccRukuInfo',
    method: 'put',
    data: data
  })
}

// 修改状态和打印次数
export function updateRuKuDyStatus(data) {
  return request({
    url: '/business/ccRukuInfo/editRukuStatus',
    method: 'put',
    data: data
  })
}



// 删除入库任务
export function delCcRukuInfo(id) {
  return request({
    url: '/business/ccRukuInfo/' + id,
    method: 'delete'
  })
}
